package uk.co.accolade.clash.core;

import org.junit.matchers.TypeSafeMatcher;
import org.hamcrest.Description;

public class UserChangesIsEmpty extends TypeSafeMatcher<UserChanges> {

    public static UserChangesIsEmpty empty() {
        return new UserChangesIsEmpty();
    }

    public UserChangesIsEmpty() {
    }

    public boolean matchesSafely( UserChanges userChanges ) {
        return userChanges.getChangedFilesReadOnly().isEmpty();
    }

    public void describeTo( Description description ) {
        description.appendText( "Empty user changes" );
    }
}
